<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include '../connect.php';
if(isset ($_POST['send']))
{
    $username=mysql_real_escape_string(trim($_POST['username']));
    $password=trim($_POST['username']);
    $password=md5($password);
    $age=trim($_POST['age']);
    if(mysql_query("insert into `users` set `name`='$username',`pass`='$password',`age`='$age'"))
        echo "successful <br>";
}
?>
<center>
    <form method="post">
        name : <input type="text" name="username" /><br>
        password : <input type="password" name="password" /><br>
        age : <input type="text" name="age" /><br>
        <input type="submit" name="send" value="send" />
    </form>
</center>